package com.ssy.lingxi.pay.api.common.allInPay;

/**
 * 消费方式
 *
 * @author lqa
 * @version 2.0.0
 * @date 2021/12/1
 */
public enum AllInPayPayMethodEnum {
    GATE_WAY(1, "GATEWAY", "网关"),
    WE_CHAT_PAY_MINI_PROGRAM(8, "WECHATPAY_MINIPROGRAM", "收银宝微信小程序支付"),
    WE_CHAT_PAY_MINI_PROGRAM_ORG(9, "WECHATPAY_MINIPROGRAM_ORG", "收银宝微信小程序支付(集团)"),
    SCAN_WEI_XIN(12, "SCAN_WEIXIN", "微信扫码支付正扫"),
    SCAN_WEI_XIN_ORG(13, "SCAN_WEIXIN_ORG", "微信扫码支付正扫 集团"),
    SCAN_ALIPAY(15, "SCAN_ALIPAY", "支付宝支付正扫"),
    SCAN_ALIPAY_ORG(16, "SCAN_ALIPAY_ORG", "支付宝支付正扫 集团"),
    BALANCE(22, "BALANCE", "账户余额"),
    WECHATPAY_MINIPROGRAM_OPEN(34, "WECHATPAY_MINIPROGRAM_OPEN", "微信原生小程序支付"),
    QUICKPAY_VSP(35, "QUICKPAY_VSP", "收银宝快捷支付"),
    GATEWAY_VSP(36, "GATEWAY_VSP", "收银宝网关支付");
    //  POS_PAY(2, "POSPAY", "订单POS"),
    // POS_PAY_SZ(3, "POSPAY_SZ", "订单POS"),
    //  REAL_NAME_PAY(4, "REALNAMEPAY", "实名付（单笔）"),
    // REAL_NAME_PAY_BATCH(5, "REALNAMEPAY_BATCH", "实名付（batch）"),
    //  WITHHOLD_TLT(6, "WITHHOLD_TLT", "通联通代扣"),
    // QUICK_PAY_TLT(7, "QUICKPAY_TLT", "通联通协议支付"),

    // WECHAT_PAY_APP(10, "WECHATPAY_APP", "微信APP支付"),
    //  WE_CHAT_AY_APP_OPEN(11, "WECHATPAY_APP_OPEN", "微信原生APP支付"),

    //  WECHAT_PUBLIC(14, "WECHAT_PUBLIC", "微信JS支付（公众号)"),

    //  ALIPAY_SERVICE(17, "ALIPAY_SERVICE", "支付宝JS支付（生活号）"),
    //  QQ_WALLET(18, "QQ_WALLET", "QQ钱包JS支付"),
    //  CODE_PAY_W(19, "CODEPAY_W", "微信刷卡支付（被扫）"),
    //  CODE_PAY_A(20, "CODEPAY_A", "支付宝刷卡支付(被扫)"),
    //  CODE_PAY_Q(21, "CODEPAY_Q", "QQ刷卡支付(被扫)"),

    // WE_CHAT_PAY_H5(23, "WECHATPAY_H5", "微信账户余额-h5"),
    // WECHAT_PUBLIC_ORG(24, "WECHAT_PUBLIC_ORG", "微信JS支付（公众号）_集团"),
    //  ALIPAY_SERVICE_ORG(25, "ALIPAY_SERVICE_ORG", "支付宝JS支付_集团"),
    //  QQ_WALLET_ORG(26, "QQ_WALLET_ORG", "QQ钱包JS支付_集团"),
    //  ORDER_VSP_PAY(27, "ORDER_VSPPAY", "收银宝POS当面付及订单模式支付"),
    //  QUICK_PAY_H5(28, "QUICKPAY_H5", "新移动H5"),
    // QUICK_PAY_PC(29, "QUICKPAY_PC", "PC快捷支付"),
    //  WE_CHAT_PAY_APP_ORG(30, "WECHATPAY_APP_ORG", "微信APP支付_集团"),
    // ALIPAY_APP_OPEN(31, "ALIPAY_APP_OPEN", "支付宝原生APP支付"),
    // VIRTUAL_IN(32, "VIRTUAL_IN", "通用虚拟入金"),
    //WITHHOLD_SD(33, "WITHHOLD_SD", "山东代收"),


    private Integer code;
    private String payMethod;
    private String msg;

    AllInPayPayMethodEnum(int code, String payMethod, String msg) {
        this.code = code;
        this.payMethod = payMethod;
        this.msg = msg;
    }

    public static String getMessage(Integer code) {
        AllInPayPayMethodEnum[] values = AllInPayPayMethodEnum.values();
        for (AllInPayPayMethodEnum allInPayPayMethodEnum : values) {
            if (allInPayPayMethodEnum.code.equals(code)) {
                return allInPayPayMethodEnum.msg;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
